package gui.models;

import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;

public class TyranizatorTableModel extends DefaultTableModel {

	public TyranizatorTableModel() {
		super(
				new Object[][] {}, 
				new String[] { "Nr. procesu", "Czy koordynator", "Czy aktywny", "Odebrane komunikaty" });
	}

	Class[] columnTypes = new Class[] { Integer.class, Boolean.class,
			Boolean.class, String.class };

	public Class getColumnClass(int columnIndex) {
		return columnTypes[columnIndex];
	}

	boolean[] columnEditables = new boolean[] { false, false, true, false };

	public boolean isCellEditable(int row, int column) {
		return columnEditables[column];
	}
}